package com.sgb.kjwl.model.entity.user;

import com.google.gson.annotations.SerializedName;
import com.swgk.core.util.MDateUtil;

public class DeviceStateEntity {
    @SerializedName("id")
    private String id;
    @SerializedName("title")
    private String title;
    @SerializedName("categoryName")
    private String type;
    @SerializedName("city")
    private String area;
    @SerializedName("status")
    private String state;
    @SerializedName("updateTime")
    private String time;
    @SerializedName("price")
    private String price;

    private String timeFormat;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getTimeFormat() {
        return MDateUtil.getByTimestamp(Long.parseLong(time), MDateUtil.Format.FORMART5.name);
    }

    public void setTimeFormat(String timeFormat) {
        this.timeFormat = timeFormat;
    }

}
